import request from '@/utils/request'

export default {

    getPageList(page, limit, searchObj) {
      return request({
        url: `param/pageParam/${page}/${limit}`,
        method: 'post',
        data: searchObj
      })
    },
    save(param) {
      return request({
          url: `param/addParam`,
          method: 'post',
          data: param
      })
    },
    removeParamById(id) {
      return request({
        url: `param/remove/${id}`,
        method: 'delete'
      })
    },
    getById(id) {
      return request({
        url: `param/info/${id}`,
        method: 'get'
      })
    },
    updateParam(param) {
      return request({
        url: `param/update`,
        method: 'post',
        data: param
      })
    }
}